const status_dir = {
    1: '非振动数据',
    3: '振动数据',
}
export const column = [
    {
        label: 'ID',
        name: 'id',
    },
    {
        label: '名称',
        name: 'name',
    },
    {
        label: '特征值代码',
        name: 'nickname',
    },
    {
        label: '单位',
        name: 'unit',
    },
    {
        name: 'vibration',
        label: '类型',
        format: (val) => status_dir[val],
    },
    {
        title: '操作',
        name: 'action',
        width: '260',
        buttons: [],
    },
]

export const config = [
    {
        name: 'name',
        type: 'input',
        placeholder: '请输入特征值名称',
        label: '特征值名称',
        required: true,
    },
    {
        name: 'nickname',
        type: 'input',
        placeholder: '请输入特征值代码',
        label: '特征值代码',
        required: true,
    },
    {
        name: 'unit',
        type: 'input',
        placeholder: '请输入单位',
        label: '单位',
        required: true,
    },
    {
        name: 'vibration',
        type: 'switch',
        options: {
            active: { text: '振动数据', value: 3 },
            inactive: { text: '非振动数据', value: 1 },
        },
        label: '数据类型',
    },
]
